<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-3.5.1.min.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			.d1 {
				width: 100px;
				height: 100px;
				background-color: #000000;
				margin-top: 20px;
				display: block;
			}
		</style>
	</head>
	<body>
		<input type="button" id="p1" value="变宽"></input>
		<input type="button" id="p2" value="变高"></input>
		<input type="button" id="p3" value="变色"></input>
		<input type="button" id="p4" value="隐藏"></input>
		<input type="button" id="p5" value="重置"></input>
		<div class="d1"></div>
		
		<script type="text/javascript">
			$(function() {
				$("#p1").click(function() {
					$(".d1").css("width", "200px");
				});
				$("#p2").click(function() {
					$(".d1").css("height", "200px");
				});
				$("#p3").click(function() {
					$(".d1").css("background-color", "red");
				});
				$("#p4").click(function() {
					$(".d1").css("display", "none");
				});
				$("#p5").click(function() {
					$(".d1").css({"display":"block","width":"100px","height":"100px","background-color":"#000000","margin-top":"20px"});
				});
			})
		</script>
	</body>
</html>
